package net.domor.stock.core.entity;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;
import java.util.Date;

public class Entity implements Serializable, Cloneable {

    /**
     * 状态
     */
    private int status;

    /**
     * 创建人 username
     */
    private String creator;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 编辑人 username
     */
    private String editor;

    /**
     * 编辑时间
     */
    private Date editTime;

    public Entity() {}

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getEditor() {
        return editor;
    }

    public void setEditor(String editor) {
        this.editor = editor;
    }

    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
